package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Setter
@Getter
//培训计划申请
public class Train {
    private Long id;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date applyDate;//申请时间
    private String name;//培训名称
    private Integer type;//培训类型
    private String organization;//培训机构
    private BigDecimal totalNumber;//预计费用
    private String trainAddress;//培训场地
    private Integer duration;//培训时长
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date beginDate;//开始时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date endDate;//结束时间
    private String target;//培训目的
    private String remark;//培训备注
    private String content;//培训内容
    private Department dept;//申请部门
    private Employee employee;//申请人
}
